<?php

class tipo_habitacion
		{
			private $id;
			private $name;
			private $description;
		// GET
			public function getId() {
			  return $this->id;
			}

			public function getName() {
			  return $this->name;
			}

			public function getDescription() {
			  return $this->description;
			}

		// SET
			public function setId($id) {
			  $this->id=$id;
			}

			public function setName($name) {
			  $this->name=$name;
			}

			public function setDescription($description) {
			  $this->description=$description;
			}

		// ORM GENERATE MODEL
			public function table() {
			  return "tipo_habitacion" ;
			}

			public function signesToSave() {
			  return "?,?,?";
			}

			public function signesToUpdate() {
			  return "name=?,description=?";
			}

			public function fieldsToArray() {
			  return array("id","name","description");
			}

			public function fieldsToString() {
			  return "id,name,description" ;
			}

			public function paramsToSave() {
			  $array = array(
					$this-> getId(),
					$this-> getName(),
					$this-> getDescription());
			 return $array;
			}

			public function paramsToUpdate() {
			  $array = array(
					$this-> getName(),
					$this-> getDescription(),
					$this-> getId());
			 return $array;
			}

        }
?>
